﻿<UserControl x:Class="WGMClient.Views.LoginView"
    xmlns:localcontrols="clr-namespace:WGMClient.Controls"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Loaded="OnLoaded"  >
    <Grid Name="_layoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="55"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <StackPanel VerticalAlignment="Bottom" Margin="20,0,0,0" Orientation="Horizontal">
            <localcontrols:BackgroundTextBlock x:Name="_loginSelector" Text="login" HasImage="False" UnderlineVisible="True"  VerticalAlignment="Bottom" LabelForeground="Black" LabelFontFamily="Verdana"  BorderBackground="Transparent"   HorizontalAlignment="Left" LabelFontSize="14" Margin="0,0,0,0" TextMargin="3,0,3,0" InnerBorderMargin="0,0,0,3" MouseLeftButtonDown="OnCancelCreateAccount" Cursor="Hand"/>
            <localcontrols:BackgroundTextBlock x:Name="_createAccSelector" Text="create account" HasImage="False" UnderlineVisible="False"  VerticalAlignment="Bottom" LabelForeground="Black" LabelFontFamily="Verdana"  BorderBackground="Transparent"   HorizontalAlignment="Left" LabelFontSize="14" Margin="50,0,0,0" TextMargin="3,0,3,0" InnerBorderMargin="0,0,0,3" MouseLeftButtonDown="OnCreateAccount" Cursor="Hand"/>
            <localcontrols:BackgroundTextBlock Visibility="Collapsed" x:Name="_recoverAccSelector" Text="recover account" HasImage="False" UnderlineVisible="False"  VerticalAlignment="Bottom" LabelForeground="Black" LabelFontFamily="Verdana"  BorderBackground="Transparent"   HorizontalAlignment="Left" LabelFontSize="14" Margin="50,0,0,0" TextMargin="3,0,3,0" InnerBorderMargin="0,0,0,3"/>

        </StackPanel>
        <TabControl x:Name="_mainTabControl" Focusable="False" Background="Transparent" BorderThickness="0" Grid.Row="1" VerticalAlignment="Bottom" SelectionChanged="_mainTabControl_SelectionChanged">
            <TabItem x:Name="_loginTab" Visibility="Collapsed" IsSelected="True">
                <Grid Margin="10,10,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="120" />
                        <ColumnDefinition Width="270" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="30" />
                        <RowDefinition Height="30" />   
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                    </Grid.RowDefinitions>
                    <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Username" VerticalAlignment="Center"/>
                    <TextBlock Grid.Row="1" Foreground="#FF222222" FontFamily="Verdana" Text="Password"  VerticalAlignment="Center"/>
                    <TextBox Name="_usernameTB" Grid.Column="1" FontFamily="Verdana" BorderThickness="0" VerticalAlignment="Center" Grid.ColumnSpan="3" Height="15.37" KeyUp="OnPasswordKeyUp">
                        <TextBox.Background>
                            <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                                <GradientStop Offset="0.5" Color="#FF888888"/>
                                <GradientStop Offset="1" Color="Transparent"/>
                            </LinearGradientBrush>
                        </TextBox.Background>
                    </TextBox>
                    <PasswordBox Name="_passwordTB" Grid.Column="1" Grid.Row="1" FontFamily="Verdana" BorderThickness="0" VerticalAlignment="Center" Grid.ColumnSpan="3" Height="15.37" KeyUp="OnPasswordKeyUp">
                        <PasswordBox.Background>
                            <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                                <GradientStop Offset="0.5" Color="#FF888888"/>
                                <GradientStop Offset="1" Color="Transparent"/>
                            </LinearGradientBrush>
                        </PasswordBox.Background>
                    </PasswordBox>
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2">
                        <TextBlock   Foreground="#FF222222" FontFamily="Verdana" Text="Login" VerticalAlignment="Center" HorizontalAlignment="Right" Cursor="Hand" MouseLeftButtonDown="OnLogin" Margin="0,0,12,0"/>
                    </StackPanel>
                    <CheckBox x:Name="_rememberLoginChk" Grid.Row="3" Grid.ColumnSpan="2" HorizontalAlignment="Right" Foreground="#FF222222" Background="Transparent" Margin="0,0,12,0">
                        <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Remember Me" VerticalAlignment="Center"/>

                    </CheckBox>
                </Grid>
            </TabItem>
            <TabItem x:Name="_createAccTab" Visibility="Collapsed">
                <Grid Width="400" Margin="10,10,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="120" />
                        <ColumnDefinition Width="270" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="30" />
                        <RowDefinition Height="30" />
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                        <RowDefinition Height="30"/>
                    </Grid.RowDefinitions>
                    <TextBlock Foreground="#FF222222" FontFamily="Verdana" Text="Username" VerticalAlignment="Center"/>
                    <TextBlock Grid.Row="1" Foreground="#FF222222" FontFamily="Verdana" Text="Password"  VerticalAlignment="Center"/>
                    <TextBlock Grid.Row="2" Foreground="#FF222222" FontFamily="Verdana" Text="Confirm Password"  VerticalAlignment="Center"/>
                    <TextBlock Grid.Row="3" Foreground="#FF222222" FontFamily="Verdana" Text="Email"  VerticalAlignment="Center"/>
                    <TextBlock Grid.Row="4" Foreground="#FF222222" FontFamily="Verdana" Text="Security Question"  VerticalAlignment="Center"/>
                    <TextBlock Grid.Row="5" Foreground="#FF222222" FontFamily="Verdana" Text="Security Answer"  VerticalAlignment="Center"/>
                    <TextBlock Grid.Row="6" Foreground="#FF222222" FontFamily="Verdana" Text="Confirm Answer"  VerticalAlignment="Center"/>
                    <TextBox Name="_createUsernameTB" Grid.Column="1" FontFamily="Verdana" BorderThickness="0" VerticalAlignment="Center" Grid.ColumnSpan="3" Height="15.37" KeyUp="OnCreateKeyUp">
                        <TextBox.Background>
                            <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                                <GradientStop Offset="0.5" Color="#FF888888"/>
                                <GradientStop Offset="1" Color="Transparent"/>
                            </LinearGradientBrush>
                        </TextBox.Background>
                    </TextBox>
                    <PasswordBox Name="_createPasswordTB" Grid.Column="1" Grid.Row="1" FontFamily="Verdana" BorderThickness="0" VerticalAlignment="Center" Grid.ColumnSpan="3" Height="15.37" KeyUp="OnCreateKeyUp">
                        <PasswordBox.Background>
                            <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                                <GradientStop Offset="0.5" Color="#FF888888"/>
                                <GradientStop Offset="1" Color="Transparent"/>
                            </LinearGradientBrush>
                        </PasswordBox.Background>
                    </PasswordBox>
                    <PasswordBox Name="_createConfirmPasswordTB" Grid.Column="1" Grid.Row="2" FontFamily="Verdana" BorderThickness="0" VerticalAlignment="Center" Grid.ColumnSpan="3" Height="15.37" KeyUp="OnCreateKeyUp">
                        <PasswordBox.Background>
                            <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                                <GradientStop Offset="0.5" Color="#FF888888"/>
                                <GradientStop Offset="1" Color="Transparent"/>
                            </LinearGradientBrush>
                        </PasswordBox.Background>
                    </PasswordBox>
                    <TextBox Name="_createEmailTB" Grid.Column="1" Grid.Row="3" FontFamily="Verdana" BorderThickness="0" VerticalAlignment="Center" Grid.ColumnSpan="3" Height="15.37" KeyUp="OnCreateKeyUp">
                        <TextBox.Background>
                            <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                                <GradientStop Offset="0.5" Color="#FF888888"/>
                                <GradientStop Offset="1" Color="Transparent"/>
                            </LinearGradientBrush>
                        </TextBox.Background>
                    </TextBox>
                    <TextBox Name="_createSecureQTB" Grid.Column="1" Grid.Row="4" FontFamily="Verdana" BorderThickness="0" VerticalAlignment="Center" Grid.ColumnSpan="3" Height="15.37" KeyUp="OnCreateKeyUp">
                        <TextBox.Background>
                            <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                                <GradientStop Offset="0.5" Color="#FF888888"/>
                                <GradientStop Offset="1" Color="Transparent"/>
                            </LinearGradientBrush>
                        </TextBox.Background>
                    </TextBox>
                    <PasswordBox Name="_createSecureATB" Grid.Column="1" Grid.Row="5" FontFamily="Verdana" BorderThickness="0" VerticalAlignment="Center" Grid.ColumnSpan="3" Height="15.37" KeyUp="OnCreateKeyUp">
                        <PasswordBox.Background>
                            <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                                <GradientStop Offset="0.5" Color="#FF888888"/>
                                <GradientStop Offset="1" Color="Transparent"/>
                            </LinearGradientBrush>
                        </PasswordBox.Background>
                    </PasswordBox>
                    <PasswordBox Name="_createConfirmSecureATB" Grid.Column="1" Grid.Row="6" FontFamily="Verdana" BorderThickness="0" VerticalAlignment="Center" Grid.ColumnSpan="3" Height="15.37" KeyUp="OnCreateKeyUp">
                        <PasswordBox.Background>
                            <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                                <GradientStop Offset="0.5" Color="#FF888888"/>
                                <GradientStop Offset="1" Color="Transparent"/>
                            </LinearGradientBrush>
                        </PasswordBox.Background>
                    </PasswordBox>
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="2">
                        <TextBlock    Foreground="#FF222222" FontFamily="Verdana" Text="Cancel" VerticalAlignment="Center" Cursor="Hand" Margin="0,0,25,0" MouseLeftButtonDown="OnCancelCreateAccount"/>
                        <TextBlock   Foreground="#FF222222" FontFamily="Verdana" Text="Create Account" VerticalAlignment="Center" HorizontalAlignment="Right" Cursor="Hand" MouseLeftButtonDown="OnCreateAccountSubmit" Margin="0,0,12,0"/>
                    </StackPanel>
                </Grid>
            </TabItem>
            <TabItem x:Name="_recoverAccTab" Visibility="Collapsed">
                
            </TabItem>
        </TabControl>        
    </Grid>
</UserControl>
